package com.otaku.memberAPI.service;

import com.otaku.common.ResultUtils.ResultModel;
import com.otaku.memberAPI.entity.UserEntity;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
public interface IMemberService {

    /**
     * 接口层 接收传递参数时 需指定参数的类型，或请求方式
     * @param name
     * @return
     */
    @RequestMapping("/getMember")
    UserEntity getMember(@RequestParam("name") String name);

    @RequestMapping("/getMemberInfo")
    String getMemberInfo();

    @RequestMapping("/getMemberInfoHystrix")
    String getMemberInfoHystrix();

    @RequestMapping("/getSysError")
    public ResultModel getSysError();

    @RequestMapping("/getSysError2")
    public ResultModel getSysError2();
}
